import $api from './index'
const keyMapKey = 'f48bde23e232ed6770d73159f923b909'
const originLocation = '120.275353,31.911879'
const baseData = {
  key:keyMapKey,
  location:originLocation
}

export const  getPosByWord = (data)=>{
  return $api.get("https://restapi.amap.com/v5/place/around", {
    ...baseData,
    ...data
  })
}